
import { _decorator, Component, Node, director } from 'cc';
import { GameContrl } from '../GameContrl';
const { ccclass, property } = _decorator;

@ccclass('GameRevive')
export class GameRevive extends Component {
    // [1]
    // dummy = '';

    // [2]
    // @property
    // serializableDummy = 0;

    start() {
        // [3]
    }

    clickRevive() {
        //游戏的数据不能变
        GameContrl.instance.revive();
        this.node.destroy();
    }

    clickFail() {
        //加载游戏开始界面
        director.loadScene('home')
    }

}


